package com.gitee.wsl.common.ui.graphics

import androidx.compose.runtime.Composable
import java.awt.Toolkit

@Composable
actual fun getDisplayMetrics(): DisplayMetrics {
    val dpi = Toolkit.getDefaultToolkit().screenResolution
    return DisplayMetrics(
        density = dpi / 160f,
        xdpi = dpi.toFloat(),
        ydpi = dpi.toFloat(),
    )
}
